package com.lks.test01.controller;


import com.lks.test01.entity.User;
import com.lks.test01.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ssss
 * @since 2020-12-11
 */
@Controller
@ResponseBody
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;
    @RequestMapping("/aa")
    User sle() {
        User users = userService.selectAll();
        System.out.println(users);
        return users;
    }


}

